package com.kx.yooli.kx.wechat.po.message;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.lettuce.core.dynamic.annotation.Key;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * @author john_sqwen-childe.wen
 * date 2024/4/8
 * PROJECT_NAME wechat
 * description create WechatSmsLog by john_sqwen
 * and  value is
 */
@Table("wechat_sms_log")
public class WechatSmsLog {
    private final Logger log = LoggerFactory.getLogger(WechatSmsLog.class);
    /**
     *  主键（自增）,所属表字段为wechat_sms_log.id
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     *  手机号码,所属表字段为wechat_sms_log.phone
     */
    private String phone;

    /**
     *  短信发送状态,所属表字段为wechat_sms_log.sms_status
     */
    private String smsStatus;

    /**
     *  短信发送结果,所属表字段为wechat_sms_log.sms_result
     */
    private String smsResult;

    /**
     *  短信发送时间,所属表字段为wechat_sms_log.create_time
     */
    private Date createTime;

    /**
     *  构造查询条件,wechat_sms_log
     */
    public WechatSmsLog(Integer id, String phone, String smsStatus, String smsResult, Date createTime) {
        this.id = id;
        this.phone = phone;
        this.smsStatus = smsStatus;
        this.smsResult = smsResult;
        this.createTime = createTime;
    }

    /**
     *  构造查询条件,wechat_sms_log
     */
    public WechatSmsLog() {
        super();
    }

    /**
     * 获取 主键（自增） 字段:wechat_sms_log.id
     *
     * @return wechat_sms_log.id, 主键（自增）
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置 主键（自增） 字段:wechat_sms_log.id
     *
     * @param id wechat_sms_log.id, 主键（自增）
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取 手机号码 字段:wechat_sms_log.phone
     *
     * @return wechat_sms_log.phone, 手机号码
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置 手机号码 字段:wechat_sms_log.phone
     *
     * @param phone wechat_sms_log.phone, 手机号码
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * 获取 短信发送状态 字段:wechat_sms_log.sms_status
     *
     * @return wechat_sms_log.sms_status, 短信发送状态
     */
    public String getSmsStatus() {
        return smsStatus;
    }

    /**
     * 设置 短信发送状态 字段:wechat_sms_log.sms_status
     *
     * @param smsStatus wechat_sms_log.sms_status, 短信发送状态
     */
    public void setSmsStatus(String smsStatus) {
        this.smsStatus = smsStatus == null ? null : smsStatus.trim();
    }

    /**
     * 获取 短信发送结果 字段:wechat_sms_log.sms_result
     *
     * @return wechat_sms_log.sms_result, 短信发送结果
     */
    public String getSmsResult() {
        return smsResult;
    }

    /**
     * 设置 短信发送结果 字段:wechat_sms_log.sms_result
     *
     * @param smsResult wechat_sms_log.sms_result, 短信发送结果
     */
    public void setSmsResult(String smsResult) {
        this.smsResult = smsResult == null ? null : smsResult.trim();
    }

    /**
     * 获取 短信发送时间 字段:wechat_sms_log.create_time
     *
     * @return wechat_sms_log.create_time, 短信发送时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置 短信发送时间 字段:wechat_sms_log.create_time
     *
     * @param createTime wechat_sms_log.create_time, 短信发送时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
